package com.zyw.zhuangdian.service;

import java.util.Set;

public interface CacheService {
    void setKeyValue(String key,String value);
    void setKeyObject(String key,Object value);
    void setKeyValueExpire(String key,String value,Long minTimeOut);
    void setKeyObjectExpire(String key,Object value,Long minTimeOut);
    <T> T getKey(String key,Class<T> clazz);
    String getKey(String key);
    Boolean hasKey(String key);
    Set<String> findKeys(String pattern);
    void delKey(String key);
}
